function err_handler(req,res){
	var data = {};
	data.head = "err";
	data.info = req.session.err;
	req.session.err = null;
	res.send(data);
	res.end();
}

function data_handler(res,action,info){
	var data = {};
	data.head = "ok";
	data.action = action;
	data.info = info;
	res.send(data);
	res.end();
}

module.exports = {
	errHandler  : err_handler,
	dataHandler : data_handler,
	err_handler : err_handler,  //old version
	data_handler: data_handler  //
}
